<script>
import userPoint from "@/hooks/userPoint";
import {reactive} from "vue";

export default {
  name: "Demo",
  setup() {
    let point = userPoint()
    return {
      point
    }
  }
}
</script>

<template>
  <div>
    <h2>鼠标移动的位置是x:{{ point.x }}y:{{ point.y }}</h2>
  </div>
</template>

<style scoped>

</style>